import React  from 'react';

import { Modal } from 'antd';

const Player: React.FC<any> = (props) => {
  const { visible, onClose } = props;


  const onPlayerClose = () => {
    console.log(1);

    onClose()
  }

  return (
    <>
      <Modal
        visible={visible}
        title="预览"
        onOk={onPlayerClose}
        onCancel={onPlayerClose}
        maskClosable={false}
      >
        <p>1</p>

      </Modal>

    </>
  )
}

export default Player;